package ooap;

/**
 * @author yuisama
 * @date 2022/08/26 09:38
 * 使用类来定义洗衣机
 **/
public class WashingMachine {
    // 品牌
    public String brand;

    // 型号
    public String type;
    // 重量
    public double weight;
    // 长宽高
    public double length;
    public double width;
    public double height;
    // 颜色
    public String color;
    // 洗衣服
    public void washClothes() {
        System.out.println("washing clothes...");
    }
    // 甩干功能
    public void dryClothes() {
        System.out.println("drying clothes...");
    }
    // time形参
    // 定时关闭
    public void closeTime(int time) {
        System.out.println("delay a " + time +"s will close machine");
    }

    public static void main(String[] args) {
        WashingMachine washingMachine = new WashingMachine();
        // 10是实参
        washingMachine.closeTime(10);
    }
}